{
<?php if($stat == 'ok'): ?>
"bookmark": { "total":<?php echo $total ?>,
<?php include_partial('book/list', array('books' => $books)); ?>
},
<?php else: ?>
"code": "<?php echo $error_code ?>",
"message": "<?php echo $error_msg ?>",
<?php endif; ?>
"stat": "<?php echo $stat ?>"
}